package util

import android.app.AlertDialog
import android.content.Context
import android.content.DialogInterface
import kotlinx.android.synthetic.main.fragment_people__child.*

class DocumentTypeUtil(context: Context) {
    val context:Context=context
    var  array= arrayOf("身份证","护照","港澳居民来往内地通行证",
        "台湾居民来往内地通行证","外国人永久居留身份证","中华人民共和国出入境通行证","中华人民共和国旅行证")
   fun documentType():AlertDialog.Builder{

       //身份证功能实现

       var builder = AlertDialog.Builder(context)
       builder.setItems(array,DialogInterface.OnClickListener { dialog, which ->  })
       builder.setNeutralButton("取消", null)
       builder.setPositiveButton("确认", null)
       builder.create().show()
       return  builder
   }
}